﻿using SD.Entity;
using SD.Entity.PageSearch;
using SD.Entity.SearchEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SD.Interface.Service
{
    public interface IActionInfoService
    {
        ActionInfo GetActionInfo(int Id);

        int DeleteActionInfo(int Id);

        int SaveActionInfo(ActionInfo actionInfo);

        List<ActionInfo> GetActionInfoList(ActionInfoSearch search);

        PagedList<ActionInfo> QueryActionInfoList(ActionInfoSearch search, PageView view);

        //查询用户的菜单/功能权限
        List<ActionInfo> QueryActionListByUserId(int userId,int actionTypeEnum);

        //判断用户是否有访问该方法的权限
        bool HasAcccessAction(int userId, string controlName, string actionName, string method);
    }
}
